import React from 'react';
import { Link } from 'react-router-dom';

export default class Main extends React.Component {
  render() {
    return (
      <div>
        <ul>
          <li>
            <Link to='/home'>Home2</Link>
          </li>
          <li>
            <Link to="/about">about2</Link>
          </li>
          <li>
            <Link to="/about/a">aboutA2</Link>
          </li>
        </ul>
        {this.props.children}
      </div>
    )
  }
}
